From c7e11bdde3009044bbf1a7bfb3ce0b7bf18b16f8 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 1 Oct 2004 03:29:23 +0000 Subject: [PATCH] Warn if attempting to read tracks or routes into xcsv. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@952 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/xcsv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gpsbabel/xcsv.c b/gpsbabel/xcsv.c index 93aa9ba21..80f2ff58f 100644 --- a/gpsbabel/xcsv.c +++ b/gpsbabel/xcsv.c @@ -495,6 +495,10 @@ xcsv_rd_init(const char *fname) xcsv_read_style(styleopt); } + if (global_opts.masked_objective & (TRKDATAMASK|RTEDATAMASK)) { + warning(MYNAME "attempting to read %s as a track or route. Converting to waypoints.\n", fname); + } + xcsv_file.xcsvfp = xfopen(fname, "r", MYNAME); } -- 2.30.2